#!/bin/bash

############
# VARIABLES
############
SCRIPT_YELLOW=$1
SCRIPT_BLUE=$2
WORLD_DIR=~/magisterka/plansza/
WORLD=robocup.world

VIDEO_START=~/magisterka/workspace/videoserver/Debug/start.sh
YELLOW_START=~/magisterka/workspace/autonomic_client/scripts/$SCRIPT_YELLOW
BLUE_START=~/magisterka/workspace/autonomic_client/scripts/$SCRIPT_BLUE
REFEREE_START=~/magisterka/workspace/auto_referee/Debug/start.sh

########################
# STARTING APPLICATIONS
########################
echo $SCRIPT_YELLOW $SCRIPT_BLUE

gazebo $WORLD_DIR$WORLD > log_gazebo.txt &
sleep 5

$VIDEO_START > log_video.txt &
sleep 2

$YELLOW_START
$BLUE_START
sleep 2

$REFEREE_START > log_referee.txt &
